import Vue from 'vue'
//引入vue-ls替代js-cookie
import VueStorage from 'vue-ls'
//引入系统默认配置
import config from '@/config/defaultSettings'

//引入element-ui组件
import ElementUI from 'element-ui' 
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' // global css

import PubSub from 'pubsub-js'

//引入自定义工具方法,并挂载到全局
import { handleTree } from "@/utils/common";

//使用elementUI
Vue.use(ElementUI) 
//使用vue-ls
Vue.use(VueStorage,config.storageOptions)
//挂载全局属性
Vue.prototype.$notify
Vue.prototype.handleTree = handleTree
Vue.prototype.PubSub = PubSub   //组件发布订阅消息
